package com.nnnu.wsnackshop.pojo.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

@Data
@Schema(description = "新增分类 DTO")
public class AddCategoryDTO {
    @Schema(description = "父分类ID（可为null表示一级）")
    private Integer parentId;

    @NotBlank
    @Schema(description = "分类名称")
    private String name;

    @Schema(description = "分类描述")
    private String description;

    @Schema(description = "分类图标URL")
    private String iconUrl;

    @Schema(description = "排序字段")
    private Integer sort;

    @Schema(description = "状态（0-禁用，1-启用）")
    private Integer status;
}
